package org.example.service;

import org.springframework.stereotype.Service;

@Service
public class ProductServiceImpl implements ProductService {
    @Override
    public void delete(int id) {
        System.out.println("删除商品"+id+"的商品");
    }

    @Override
    public int add(String name, double price) {
        System.out.println("添加商品"+name+",价格为"+price);
        return 1000;
    }

    @Override
    public String findinfo(int id) {
        return "查询了id为"+id+"的商品信息:xxx";
    }
}
